package com.cmcc.groupcontacts.database;

import java.util.ArrayList;

import android.util.SparseArray;

/**
 * 数据库变更日志管理器
 * 
 * @author 
 * 
 */
public class DatabaseChangeLogManager {
	private static SparseArray<ArrayList<String>> changeLog = new SparseArray<ArrayList<String>>();
	static {
		// version1的SQL调整
		// ArrayList<String> v1 = new ArrayList<String>();
		// v1.add("alter table userinfo add usersex varchar2(1);");
		// v1.add("alter table userinfo add signature text;");
		// v1.add("alter table userinfo add lastsyncversion INTEGER default 0;");
		// changeLog.put(1, v1);
	}

	public static ArrayList<String> getChangeLog(int version) {
		if (changeLog.size() > 0)
			return changeLog.get(version);
		return null;
	}

	public static void clearData() {
		changeLog = null;
	}
}
